/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_directserialconfigDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression configName;
    public final IntegerExpression port;
    public final StringExpression boundary;
    public final IntegerExpression dataBit;
    public final IntegerExpression parity;
    public final IntegerExpression stopBit;
    public final IntegerExpression flowControl;

    public T_bed_directserialconfigDetachedCriteria() {
	super(
		org.testis.orm.classes.T_bed_directserialconfig.class,
		org.testis.orm.classes.T_bed_directserialconfigCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	configName = new StringExpression("configName",
		this.getDetachedCriteria());
	port = new IntegerExpression("port", this.getDetachedCriteria());
	boundary = new StringExpression("boundary", this.getDetachedCriteria());
	dataBit = new IntegerExpression("dataBit", this.getDetachedCriteria());
	parity = new IntegerExpression("parity", this.getDetachedCriteria());
	stopBit = new IntegerExpression("stopBit", this.getDetachedCriteria());
	flowControl = new IntegerExpression("flowControl",
		this.getDetachedCriteria());
    }

    public T_bed_directserialconfigDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_bed_directserialconfigCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	configName = new StringExpression("configName",
		this.getDetachedCriteria());
	port = new IntegerExpression("port", this.getDetachedCriteria());
	boundary = new StringExpression("boundary", this.getDetachedCriteria());
	dataBit = new IntegerExpression("dataBit", this.getDetachedCriteria());
	parity = new IntegerExpression("parity", this.getDetachedCriteria());
	stopBit = new IntegerExpression("stopBit", this.getDetachedCriteria());
	flowControl = new IntegerExpression("flowControl",
		this.getDetachedCriteria());
    }

    public T_bed_directserialconfig uniqueT_bed_directserialconfig(
	    PersistentSession session) {
	return (T_bed_directserialconfig) super.createExecutableCriteria(
		session).uniqueResult();
    }

    public T_bed_directserialconfig[] listT_bed_directserialconfig(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_directserialconfig[]) list
		.toArray(new T_bed_directserialconfig[list.size()]);
    }
}
